package com.youhome.service.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class ListHubList {
    private String houseId;

    private String address;

    private String city;

    private String zip;

    private Double lng;

    private Double lat;

    private Double listPrice;

    private String listingCategory;

    private String listingKey;

    private String listingStatus;

    private Date listingDate;

    private String providerName;

    private String providerUrl;

    private String providerCategory;

    private Integer bedroomCount;

    private Integer bathroomCount;

    private String propertyType;

    private String propertySubtype;

    private String heroImage;

    private Double livingArea;

    private Double lotSize;

    private Integer yearBuilt;

    private Boolean isStar;

    private Boolean isCheck;

    private Boolean isNewHouse;

    private List<String> shareGroupNames;

    private String dataSource;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd")
    public Date getListingDate() {
        return listingDate;
    }


}